home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
commercial
/
inovatronics
/
edgedemo
/
edgeeditor
/
rexx
/
menu_bindkey.edge
< prev
next >
Wrap
Text File
|
1994-11-17
|
711b
|
44 lines
/*
** $VER: Menu_BindKey.edge 1.3 (Sunday 19-Sep-93 20:18:34)
**
** Bind a macro to a key
**
** Written by Thomas liljetoft
*/
options results
/* get the users error-report level */
getenvvar _ge_errlevel
errlevel = result
/* ask for a key-description to use */
'requestkey' title '"Enter key to bind macro to."'
if RC == 0 then do
/* ok so far, now ask for a macro to bind to the key */
key = result
'requestfile' title '"Select macro..."' path '""' file '""' getdir
if RC == 0 then do
/* okidoki, add to the key-list */
'keyboard' key result
end
end
if RC >= errlevel then do
/* something went wrong enought to be reported so report */
'fault'
'requestnotify' result
end
exit(0)